#include <stdio.h>
 int main()
 {
    float c,f;
    scanf("%f",&c);
    f=c*9/5+32;
    printf("%fC=%fF",f,c);
    return 0;
 }